﻿{extend name="public:base" /}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <input placeholder="请选择开始日期" type="text" name="start_time" value="{:input('start_time')}" class="form-control form-control-lg screen-date" readonly>
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <input placeholder="请选择结束日期" type="text" name="end_time" value="{:input('end_time')}" class="form-control form-control-lg screen-date" readonly>
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                            </div>
                        </div>
                    </div>

                    <div class="table-responsive">
                        <table class="table table-striped">
                            <tr>
                                <th>时间</th>
                                <th>个人所获收益总额统计</th>
                                <th>成功提现总额</th>
                                <th>充值总金额</th>
                                <th>使用收益购物总金额</th>
                                <th>扣款总额</th>
                            </tr>
                            {if !empty($list->items())}
                            <tr>
                                <td>{$census.range_date}</td>
                                <td>{$census.all_get_profit}</td>
                                <td>{$census.all_withdraw_profit}</td>
                                <td>{$census.all_recharge_profit}</td>
                                <td>{$census.all_buy_profit}</td>
                                <td>{$census.all_deduct_profit}</td>
                            </tr>
                            {/if}
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.date}</td>
                                <td>{$vo.all_get_profit}</td>
                                <td>{$vo.all_withdraw_profit}</td>
                                <td>{$vo.all_recharge_profit}</td>
                                <td>{$vo.all_buy_profit}</td>
                                <td>{$vo.all_deduct_profit}</td>
                            </tr>
                            {/volist}
                        </table>
                        {if !empty($list->items())}{$list->render()}{/if}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="js"}
<script src="/static/laydate/laydate.js"></script>
<script>
    laydate.render({
        elem: '.screen-date' //指定元素
    });
</script>
{/block}
